<?php

include('codebase-php\bot_api.php');
include('codebase-php\Utils.php');
include('codebase-php\LocalDataClass.php');
include('codebase-php\BotClass.php');
include('codebase-php\GetSettingsFromXml.php');

//set_include_path(get_include_path() . PATH_SEPARATOR . "codebase-php");

AutoStart($argv);

include('Inbox_class.php');
$bp = new InboxPlugin();

if (isset($getP['action'])) {
    if ($getP['action'] == 'refresh') {
        $bp->ld->userId=$CurrentUserId;
        $bp->ld->EasyConnect();
        $bp->GetForm();
    }
    if ($getP['action'] == 'save') {
        $bp->ld->userId=$CurrentUserId;
        $bp->ld->EasyConnect();
        $bp->ld->SavePlSettings('inbox', $postdata);
    }
}

?>